home *** CD-ROM | disk | FTP | other *** search
- Path: alkymi.unit.no!atlep
- From: atlep@alkymi.unit.no (Atle \ystein Pedersen)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Problems compiling gcc
- Date: 8 Feb 1996 09:03:28 GMT
- Organization: Norwegian Institute of Technology
- Message-ID: <4fce90$8bj@due.unit.no>
- NNTP-Posting-Host: jord.alkymi.unit.no
-
- I've installed GnuC++ and tried to compile a simple prog..
- Here's the situation as viewed from a shell..
-
- 0 Serious:C/Test > type test.cpp
-
- #include <iostream.h>
- #include <stdio.h>
-
- int main(int argc, char **argv)
-
- {
- printf("Hello World!\n");
- cout << "Hello world\n";
- return 0;
- }
- 0 Serious:C/Test > gcc -c test.cpp
- 0 Serious:C/Test > gcc test.cpp
- /t/cc9981921.o: Undefined symbol _cout referenced from text segment
- /t/cc9981921.o: Undefined symbol _ ls_ 7ostreamPCc referenced from text
- segment
- 0 Serious:C/Test >
-
- I.e making a .o file is no problem, but linking it causes errors...
- Does anyone know what the problem might be?
-
- Best regards,
- --
- atlep@stud.unit.no - http:\\www.stud.unit.no\~atlep\
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-